﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using DG.Tweening;

public class StartPanel : BasePanel
{
    private Button loginBtn;
    public override void OnEnter()
    {
        base.OnEnter();
        loginBtn = transform.Find("LoginBtn").GetComponent<Button>();
        loginBtn.onClick.AddListener(OnLoginClick);
    }
    private void OnLoginClick()
    {
        uiMng.ClosePanel(UIPanelType.Start);
        uiMng.OpenPanel(UIPanelType.Login);
    }
}
